package com.streambolics.worseminton.data;

import javax.jdo.PersistenceManager;

import com.streambolics.data.Person;

public class EventList extends WorsemintonOwnedObjectList<Event>
{
    public static EventList load (PersistenceManager aDatabase, Person aUser)
    {
        return new EventList ().doLoad (aDatabase, aUser);
    }

    @Override
    protected String buildQueryText ()
    {
        return "select from " + Event.class.getName () + " where ownerId == p_ownerId";
    }

    protected EventList doLoad (PersistenceManager aDatabase, Person aUser)
    {
        delayLoad (aDatabase, aUser);
        return this;
    }

}
